package com.tbit.uqbike.webmanager.dao.core;

import com.tbit.uqbike.object.value.TimeFee;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 分时段计费规则
 * @Author: chen
 * @Description:
 * @Date: 创建于 14:52 2023/11/2
 */
public interface TimeFeeDao {

  /**
   * 新增
   * @param timeFee
   */
  void add(TimeFee timeFee);

  /**
   * 删除
   * @param feeId
   */
  void delete(Integer feeId);

  /**
   * 通过区域id获取
   * @param map
   * @return
   */
  List<TimeFee> getByAccountId(Map<String,Object> map);

  /**
   * 更新
   * @param timeFee
   */
  void update(TimeFee timeFee);

  void deleteByType(Map<String,Object> map);

  void addBatch(@Param("list") List<TimeFee> billHolidayList);

  void deleteByTypes(Integer accountId);

  List<TimeFee> queryHoliday(Integer accountId);
}
